#include"Threadpool.hpp"
#include"Task.hpp"
#include"Log.hpp"
#include<iostream>
#include<string>
#include<memory>
#include<ctime>

int main()
{
    LOG(DEBUG,"程序已加载");
    sleep(3);
    ThreadPool<Task>::Getinstance();
    sleep(2);
    ThreadPool<Task>::Getinstance();
    sleep(2);
    ThreadPool<Task>::Getinstance();
    sleep(2);
    ThreadPool<Task>::Getinstance();
    sleep(3);
    ThreadPool<Task>::Getinstance()->Wait();
    sleep(2);
    return 0;
}